package com.yanqu.road.entity.activity.selectlottery.data;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.DataStatus;
import com.yanqu.road.entity.FieldTypeAnnotation;

@FieldTypeAnnotation(tableName = "t_u_activity_select_lottery_jc_user_data", desc = "通用自选抽奖-玩家继承数据表")
public class SelectLotteryJcUserData extends DataObject {

    @FieldTypeAnnotation(desc = "玩家ID", select = true, update = true)
    private long userId;

    @FieldTypeAnnotation(desc = "活动大类型")
    private int activityType;

    @FieldTypeAnnotation(desc = "活动小类型")
    private int activitySmallType;

    @FieldTypeAnnotation(desc = "抽取数量")
    private int drawNum;

    @FieldTypeAnnotation(desc = "命中2级奖励的次数")
    private int seRewardNum;

    @FieldTypeAnnotation(desc = "创建时间")
    private long createTime;

    public SelectLotteryJcUserData() {
    }

    public SelectLotteryJcUserData(long userId, int activityType, int activitySmallType) {
        this.userId = userId;
        this.activityType = activityType;
        this.activitySmallType = activitySmallType;
        this.drawNum = 0;
        this.seRewardNum = 0;
        this.createTime = System.currentTimeMillis();
        setInsertOption();
    }

    public long getUserId() {
        return userId;
    }
    public void setUserId(long userId) {
        if (this.userId != userId) {
            this.userId = userId;
            setOp(DataStatus.Update);
        }
    }

    public int getActivityType() {
        return activityType;
    }
    public void setActivityType(int activityType) {
        if (this.activityType != activityType) {
            this.activityType = activityType;
            setOp(DataStatus.Update);
        }
    }

    public int getActivitySmallType() {
        return activitySmallType;
    }
    public void setActivitySmallType(int activitySmallType) {
        if (this.activitySmallType != activitySmallType) {
            this.activitySmallType = activitySmallType;
            setOp(DataStatus.Update);
        }
    }

    public int getDrawNum() {
        return drawNum;
    }
    public void setDrawNum(int drawNum) {
        if (this.drawNum != drawNum) {
            this.drawNum = drawNum;
            setOp(DataStatus.Update);
        }
    }

    public int getSeRewardNum() {
        return seRewardNum;
    }

    public void setSeRewardNum(int seRewardNum) {
        if (this.seRewardNum != seRewardNum) {
            this.seRewardNum = seRewardNum;
            setOp(DataStatus.Update);
        }
    }

    public long getCreateTime() {
        return createTime;
    }
    public void setCreateTime(long createTime) {
        if (this.createTime != createTime) {
            this.createTime = createTime;
            setOp(DataStatus.Update);
        }
    }
}
